#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(){
	int fd=0;
/*	close(0);
	int fd;
	int ret=dup2(fd,0);
	if(ret!=0){
		printf("error cdup2\n");
		exit(-1);
	}
*/
	int nread;
	char* buffer=(char*)malloc(256);
	while( (nread=read(fd,buffer,256)) >0){
		buffer[nread]=0;
		write(1,buffer,nread);
	}
//	close(fd);
}
